package com.zking.ssm.sys.service;

import com.zking.ssm.sys.model.Menu;
import lombok.ToString;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface IMenuService {

    int deleteByPrimaryKey(Long menuId);

    int insert(Menu record);

    int insertSelective(Menu record);

    @Transactional(readOnly = true)
    Menu selectByPrimaryKey(Long menuId);

    int updateByPrimaryKeySelective(Menu record);

    int updateByPrimaryKey(Menu record);

    @Transactional(readOnly = true)
    List<Menu> list(Menu menu);

}
